home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 3 / Amiga Tools 3.iso / grafik / raytracing / rayshade-4.0.6.3 / libray / libcommon / xform.h < prev   
Encoding:
C/C++ Source or Header  |  1994-08-09  |  2.0 KB  |  57 lines

  1. /*
  2.  * xform.h
  3.  *
  4.  * Copyright (C) 1989, 1991, Craig E. Kolb
  5.  * All rights reserved.
  6.  *
  7.  * This software may be freely copied, modified, and redistributed
  8.  * provided that this copyright notice is preserved on all copies.
  9.  *
  10.  * You may not distribute this software, in whole or in part, as part of
  11.  * any commercial product without the express consent of the authors.
  12.  * 
  13.  * There is no warranty or other guarantee of fitness of this software
  14.  * for any purpose.  It is provided solely "as is".
  15.  *
  16.  * xform.h,v 4.1 1994/08/09 07:55:35 explorer Exp
  17.  *
  18.  * xform.h,v
  19.  * Revision 4.1  1994/08/09  07:55:35  explorer
  20.  * Bump version to 4.1
  21.  *
  22.  * Revision 1.1.1.1  1994/08/08  04:52:02  explorer
  23.  * Initial import.  This is a prerelease of 4.0.6enh3, or 4.1 possibly.
  24.  *
  25.  * Revision 4.0.1.1  91/10/04  15:51:33  cek
  26.  * patch1: Initial revision.
  27.  * 
  28.  * Revision 4.0  1991/09/29  15:33:56  cek
  29.  * Initial version.
  30.  *
  31.  */
  32. #ifndef XFORM_H
  33. #define XFORM_H
  34.  
  35. #define TransXformCreate()    TransCreate((TransRef)XformCreate(), XformMethods())
  36.  
  37. #define TransXformSetX0(t, v)    TransAssoc(t, &t->trans.matrix[0][0], v)
  38. #define TransXformSetY0(t, v)    TransAssoc(t, &t->trans.matrix[0][1], v)
  39. #define TransXformSetZ0(t, v)    TransAssoc(t, &t->trans.matrix[0][2], v)
  40. #define TransXformSetX1(t, v)    TransAssoc(t, &t->trans.matrix[1][0], v)
  41. #define TransXformSetY1(t, v)    TransAssoc(t, &t->trans.matrix[1][1], v)
  42. #define TransXformSetZ1(t, v)    TransAssoc(t, &t->trans.matrix[1][2], v)
  43. #define TransXformSetX2(t, v)    TransAssoc(t, &t->trans.matrix[2][0], v)
  44. #define TransXformSetY2(t, v)    TransAssoc(t, &t->trans.matrix[2][1], v)
  45. #define TransXformSetZ2(t, v)    TransAssoc(t, &t->trans.matrix[2][2], v)
  46. #define TransXformSetXt(t, v)    TransAssoc(t, &t->trans.translate.x, v)
  47. #define TransXformSetYt(t, v)    TransAssoc(t, &t->trans.translate.y, v)
  48. #define TransXformSetZt(t, v)    TransAssoc(t, &t->trans.translate.z, v)
  49.  
  50. typedef char Xform;    /* Dummy; Xform has no private data. */
  51.  
  52. extern Xform *XformCreate();
  53. extern TransMethods *XformMethods();
  54. extern void XformPropagate();
  55.  
  56. #endif /* XFORM_H */
  57.